import request from '@/utils/request'

// 查询加班申请列表
export function listAnxinOvertimeApplication(query) {
  return request({
    url: '/overtime/anxinOvertimeApplication/list',
    method: 'get',
    params: query
  })
}

// 查询加班申请详细
export function getAnxinOvertimeApplication(id) {
  return request({
    url: '/overtime/anxinOvertimeApplication/' + id,
    method: 'get'
  })
}

// 保存加班申请
export function saveAnxinOvertimeApplication(data) {
  return request({
    url: '/overtime/anxinOvertimeApplication/save',
    method: 'post',
    data: data
  })
}

// 删除加班申请
export function delAnxinOvertimeApplication(id) {
  return request({
    url: '/overtime/anxinOvertimeApplication/' + id,
    method: 'delete'
  })
}

// 导出加班申请
export function exportAnxinOvertimeApplication(query) {
  return request({
    url: '/overtime/anxinOvertimeApplication/export',
    method: 'get',
    params: query
  })
}
